.class Lcom/zuiapps/common/feedback/ConversationActivity$3;
.super Ljava/lang/Object;
.source "ConversationActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuiapps/common/feedback/ConversationActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuiapps/common/feedback/ConversationActivity;


# direct methods
.method constructor <init>(Lcom/zuiapps/common/feedback/ConversationActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/zuiapps/common/feedback/ConversationActivity;

    .prologue
    .line 93
    iput-object p1, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 97
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->userReplyContentEdit:Landroid/widget/EditText;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$000(Lcom/zuiapps/common/feedback/ConversationActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    .line 98
    .local v0, "content":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_19

    .line 113
    :cond_18
    :goto_18
    return-void

    .line 101
    :cond_19
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->userReplyContentEdit:Landroid/widget/EditText;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$000(Lcom/zuiapps/common/feedback/ConversationActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->clear()V

    .line 103
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->defaultConversation:Lcom/umeng/fb/model/Conversation;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$200(Lcom/zuiapps/common/feedback/ConversationActivity;)Lcom/umeng/fb/model/Conversation;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/umeng/fb/model/Conversation;->addUserReply(Ljava/lang/String;)V

    .line 105
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # invokes: Lcom/zuiapps/common/feedback/ConversationActivity;->sync()V
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$300(Lcom/zuiapps/common/feedback/ConversationActivity;)V

    .line 107
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->sendButton:Landroid/widget/Button;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$400(Lcom/zuiapps/common/feedback/ConversationActivity;)Landroid/widget/Button;

    move-result-object v2

    sget v3, Lcom/zuiapps/common/feedback/R$drawable;->umeng_fb_button2_white_normal:I

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 108
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->sendButton:Landroid/widget/Button;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$400(Lcom/zuiapps/common/feedback/ConversationActivity;)Landroid/widget/Button;

    move-result-object v2

    iget-object v3, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    invoke-virtual {v3}, Lcom/zuiapps/common/feedback/ConversationActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const/high16 v4, 0x1060000

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setTextColor(I)V

    .line 110
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    const-string v3, "input_method"

    invoke-virtual {v2, v3}, Lcom/zuiapps/common/feedback/ConversationActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/inputmethod/InputMethodManager;

    .line 111
    .local v1, "imm":Landroid/view/inputmethod/InputMethodManager;
    if-eqz v1, :cond_18

    .line 112
    iget-object v2, p0, Lcom/zuiapps/common/feedback/ConversationActivity$3;->this$0:Lcom/zuiapps/common/feedback/ConversationActivity;

    # getter for: Lcom/zuiapps/common/feedback/ConversationActivity;->userReplyContentEdit:Landroid/widget/EditText;
    invoke-static {v2}, Lcom/zuiapps/common/feedback/ConversationActivity;->access$000(Lcom/zuiapps/common/feedback/ConversationActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    goto :goto_18
.end method
